package com.atguigu.bigdata.gmall.realtime.util;

import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;


public class ThreadPoolUtil {
    public static ThreadPoolExecutor getThreadPool(){
        return new ThreadPoolExecutor(
            100, // 核心线程数
            500, // 最大线程数
            60,
            TimeUnit.SECONDS,
            new LinkedBlockingQueue<>()
        );
    }
}
